package com.example.demo.mapper;

import com.example.demo.entity.Userinfo;
import com.example.demo.entity.vo.UserinfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:龙宝
 * Date:2023-03-31
 * Time:18:38
 */
@Mapper
public interface UserMapper {
    int reg(Userinfo userinfo);

//    Userinfo login(Userinfo userinfo);
    //根据用户名，查询 登录
    Userinfo getUserByName(String username);

    Userinfo getUserById(@Param("id") Integer id);
}
